package com.ruoyi.backend.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotNull;
import java.time.LocalDate;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class EcologicalSupervisionReport {

    public interface Update{
    }

    @NotNull(groups = {Update.class}, message = "生态监管报告ID不能为空")
    private Integer superviseId;

    private String mineId;

    private String superviseType;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDate superviseTime;

    private String superviseAutomatic;
}
